﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ReservoirBLL;
using ReservoirModel;

namespace ReservoirManger
{
    public partial class Default : System.Web.UI.Page
    {            
        protected void Page_Load(object sender, EventArgs e)
        {           
            //实现奇偶行变色
            GridView1.AlternatingRowStyle.BackColor = Color.Beige;
            GridView1.RowStyle.BackColor = Color.Bisque;
            //调用方法 获取列表数据
            UserBLL userBLL = new UserBLL();
            var list = userBLL.GetListInfo();
            //列表绑定数据并显示在页面上
            GridView1.DataSource = list;    
            GridView1.DataBind();   
        }
    }
}